//
//  JPFAlertView.h
//  JPFFramework
//
//  Created by JPFei on 2018/10/15.
//Copyright © 2018年 JPF All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    JPFAlertView_Style1,
    JPFAlertView_Style2,
    JPFAlertView_Style3,
} JPFAlertViewStyle;

@interface JPFAlertView : UIView


@property (nonatomic, weak) IBOutlet UILabel *labTitle;
@property (nonatomic, weak) IBOutlet UILabel *labMsg;
@property (nonatomic, weak) IBOutlet UITextView *txvMsg;
@property (nonatomic, weak) IBOutlet UIButton *btnOne;
@property (nonatomic, weak) IBOutlet UIButton *btnOk;
@property (nonatomic, weak) IBOutlet UIButton *btnCancel;
@property (nonatomic, weak) IBOutlet UIScrollView *sntBody;

@property (nonatomic, copy) void (^okBlock)(void);
@property (nonatomic, copy) void (^cancelBlock)(void);

//提示框背景
@property (nonatomic, strong, readonly) JPFMaskView *maskView;

+ (JPFAlertView *)initByXibWithFrame:(CGRect)frame style:(JPFAlertViewStyle)style;
+ (JPFAlertView *)initByXibWithStyle:(JPFAlertViewStyle)style;
+ (JPFAlertView *)initWithTitle:(id)title message:(id)msg;


- (void)show;
- (void)disappear;

#pragma mark - getset
- (void)setTitle:(id)title message:(id)msg;



@end
